import {
  post,
  get,
  del
} from "@/utils/request";
// 添加订单
export const reqSaveOrderAPI = (data) => post("/api/v1/orders", data);

// 获取订单列表
export const reqOrderAPI = () => get("/api/v1/orders");

// 删除单个订单
export const reqDelOrderAPI = (id) => del(`/api/v1/orders/${id}`);

// 批量删除订单
export const reqDelOrdersAPI = (ids) => post("/api/v1/orders/delmany", {
  ids
});